﻿using Microsoft.Phone.Tasks;
using System;
using System.Windows.Input;

namespace MijnMultiOSRSSApp.Common.Commands
{
    public class ContactCommand : ICommand
    {
        public bool CanExecute(object parameter)
        {
            return true;
        }

        public event EventHandler CanExecuteChanged;
        public void RaiseCanExecuteChanged()
        {
            if (CanExecuteChanged != null)
                CanExecuteChanged(this, new EventArgs());
        }

        public void Execute(object parameter)
        {
            new EmailComposeTask { Subject = "FantasyWereld RSS Lezer contact", To = parameter as string }.Show();
        }
    }
}
